package com.tangfh.nacos.demo.provider;

import com.tangfh.nacos.demo.interfaces.StockService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

@DubboService
public class StockServiceImpl implements StockService {

    @Value("${nacos.qosPort}")
    private String nacosNamespace;

    @Override
    public String reduceStock() {
        return "服务提供方，扣减库存 nacosNamespace = " + nacosNamespace;
    }
}
